/**
 * 
 */
package com.yst.metho.web.application.utils;

import javax.ejb.CreateException;
import javax.naming.NamingException;

import com.yst.metho.web.application.connector.Module;
import com.yst.metho.web.application.interfaces.IModuleController;
import com.yst.suivi.services.activities.ActivityView;
import com.yst.suivi.services.activities.ActivityViewUtil;
import com.yst.suivi.services.assignation.AssignationView;
import com.yst.suivi.services.assignation.AssignationViewUtil;
import com.yst.suivi.services.folders.FolderView;
import com.yst.suivi.services.folders.FolderViewUtil;
import com.yst.suivi.services.pointage.PointageView;
import com.yst.suivi.services.pointage.PointageViewUtil;
import com.yst.suivi.services.project.ProjectView;
import com.yst.suivi.services.project.ProjectViewUtil;
import com.yst.suivi.services.project.versions.ProjectVersionView;
import com.yst.suivi.services.project.versions.ProjectVersionViewUtil;
import com.yst.suivi.services.project.versions.lot.LotView;
import com.yst.suivi.services.project.versions.lot.LotViewUtil;
import com.yst.suivi.services.reports.ReportView;
import com.yst.suivi.services.reports.ReportViewUtil;
import com.yst.suivi.services.rights.RightView;
import com.yst.suivi.services.rights.RightViewUtil;
import com.yst.suivi.services.team.TeamView;
import com.yst.suivi.services.team.TeamViewUtil;
import com.yst.suivi.services.user.UserView;
import com.yst.suivi.services.user.UserViewUtil;
import com.yst.suivi.services.vacationday.VacationDayView;
import com.yst.suivi.services.vacationday.VacationDayViewUtil;

/**
 * Classe qui permet de recuperer les services utilises par l'application.
 * 
 * @author perso
 * 
 */
public final class Locator
{
	public static IModuleController getController()
	{
		return new Module();
	}

	public static UserView getUserView() throws NamingException, CreateException
	{
		return UserViewUtil.getLocalHome().create();
	}

	public static VacationDayView getVacationView() throws NamingException, CreateException
	{
		return VacationDayViewUtil.getLocalHome().create();
	}

	public static RightView getRightsView() throws NamingException, CreateException
	{
		return RightViewUtil.getLocalHome().create();
	}

	public static ProjectView getProjectView() throws NamingException, CreateException
	{
		return ProjectViewUtil.getLocalHome().create();
	}

	public static ProjectVersionView getProjectVersionView() throws NamingException, CreateException
	{
		return ProjectVersionViewUtil.getLocalHome().create();
	}

	public static FolderView getFolderView() throws NamingException, CreateException
	{
		return FolderViewUtil.getLocalHome().create();
	}

	public static ActivityView getActivityView() throws CreateException, NamingException
	{
		return ActivityViewUtil.getLocalHome().create();
	}

	public static LotView getLotView() throws CreateException, NamingException
	{
		return LotViewUtil.getLocalHome().create();
	}

	public static PointageView getPointageView() throws CreateException, NamingException
	{
		return PointageViewUtil.getLocalHome().create();
	}

	public static ReportView getReportView() throws CreateException, NamingException
	{
		return ReportViewUtil.getLocalHome().create();
	}

	public static TeamView getTeamView() throws CreateException, NamingException
	{
		return TeamViewUtil.getLocalHome().create();
	}

	public static AssignationView getAssignationView() throws CreateException, NamingException
	{
		return AssignationViewUtil.getLocalHome().create();
	}
}
